﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using POSSystem.DAL;

namespace POSSystem.BLL
{
    public class View_RepairBoxes : _View_RepairBoxes
    {
        public static View_RepairBoxes GetAllActiveBoxes()
        {
            try
            {
                View_RepairBoxes boxes = new View_RepairBoxes();
                boxes.Where.BranchID.Value = Branches.CurrentBranchID;
                boxes.Query.Load();

                return boxes;
            }
            catch (Exception ex)
            {
                ErrorLog.WriteToFile("View_RepairBoxes.cs", "GetAllActiveBoxes", ex.StackTrace);
                throw ex;
            }
        }
    }
}
